import { MockMethod } from 'vite-plugin-mock'

const billMock: MockMethod[] = [
  {
    url: '/home-service/bill/pay',
    method: 'get',
    response: () => {
      return [{
        id: 602111394902085,
        name: '支付宝',
        icon: 'fa-brands fa-alipay',
        color: '#2220B2'
      },
      {
        id: 602130528899141,
        name: '招商银行',
        icon: 'fa-solid fa-money-check',
        color: '#3E5BFF'
      }]
    }
  },
  {
    url: '/home-service/bill/book',
    method: 'get',
    response: () => {
      return [{
        id: 601082142339141,
        name: '日常账本',
        icon: 'fa-solid fa-book',
        color: '#1E29FF'
      },
      {
        id: 601083198201925,
        name: '汽车账本',
        icon: 'fa-solid fa-car',
        color: '#2E8B57'
      }]
    }
  },
  {
    url: '/home-service/bill/category',
    method: 'get',
    response: () => {
      return [{
        bookName: '日常账本',
        color: '#FF1ED6',
        icon: 'fa-brands fa-shopify',
        id: 601082333016133,
        name: '购物',
        type: 'expensive'
      },
      {
        bookName: '日常账本',
        color: '#3C1EFF',
        icon: 'fa-solid fa-utensils',
        id: 601082911907909,
        name: '餐饮',
        type: 'expensive'
      },
      {
        bookName: '日常账本',
        color: '#FF1ED6',
        icon: 'fa-brands fa-shopify',
        id: 601082333016133,
        name: '购物',
        type: 'expensive'
      },
      {
        bookName: '日常账本',
        color: '#FF3C1E',
        icon: 'fa-solid fa-sack-dollar',
        id: 601422191939653,
        name: '工资',
        type: 'income'
      },
      {
        bookName: '汽车账本',
        color: '#1ED2FF',
        icon: 'fa-solid fa-car',
        id: 601083391709253,
        name: '汽车保养',
        type: 'expensive'
      }]
    }
  },
  {
    url: '/home-service/bill/summary',
    method: 'get',
    response: () => {
      return [{
        amount: 213.32,
        bookName: '日常账本',
        category: '购物',
        content: '买东西',
        date: '2024-11-11',
        id: 611071966380101,
        location: '埃斯顿',
        payAccount: '支付宝',
        remark: '',
        type: 'expensive'
      },
      {
        amount: 32.22,
        bookName: '日常账本',
        category: '餐饮',
        content: '肯德基套餐',
        date: '2024-10-17',
        id: 601083046211653,
        location: '肯德基',
        payAccount: '招商银行',
        remark: '',
        type: 'expensive'
      },
      {
        amount: 213.32,
        bookName: '日常账本',
        category: '购物',
        content: '买了一件衣服',
        date: '2024-10-17',
        id: 601082570399813,
        location: '江宁奥特莱斯',
        payAccount: '招商银行',
        remark: '',
        type: 'expensive'
      },
      {
        amount: 55555,
        bookName: '日常账本',
        category: '工资',
        content: '工资收入',
        date: '2024-10-17',
        id: 601422418636869,
        location: '埃斯顿',
        payAccount: '招商银行',
        remark: '',
        type: 'income'
      },
      {
        amount: 2125.23,
        bookName: '日常账本',
        category: '餐饮',
        content: '聚餐',
        date: '2024-10-16',
        id: 601884663570501,
        location: '江宁',
        payAccount: '支付宝',
        remark: '',
        type: 'expensive'
      },
      {
        amount: 532.22,
        bookName: '日常账本',
        category: '汽车保养',
        content: '汽车保养',
        date: '2024-10-16',
        id: 601083666997317,
        location: '溧水4S店',
        payAccount: '支付宝',
        remark: '',
        type: 'expensive'
      },
      {
        amount: 122.32,
        bookName: '日常账本',
        category: '餐饮',
        content: '老表聚餐',
        date: '2024-09-12',
        id: 601876599046213,
        location: '江宁',
        payAccount: '招商银行',
        remark: '',
        type: 'expensive'
      }]
    }
  },
  {
    url: '/bill/stats/year',
    method: 'get',
    response: () => {
      return [{
        name: '2024-10',
        value: 2902.9
      },
      {
        name: '2024-09',
        value: 122.32
      },
      {
        name: '2024-11',
        value: 213.32
      }]
    }
  },
  {
    url: '/bill/stats/month',
    method: 'get',
    response: () => {
      return []
    }
  },
  {
    url: '/bill/stats/book',
    method: 'get',
    response: () => {
      return [{
        name: '日常账本',
        value: 3238.54
      }]
    }
  },
  {
    url: '/bill/stats/category',
    method: 'get',
    response: () => {
      return [{
        name: '购物',
        value: 426.55
      },
      {
        name: '餐饮',
        value: 2279.77
      },
      {
        name: '汽车保养',
        value: 532.22
      }]
    }
  }]

export default billMock
